package com.mf.ergate.api.wx;

import com.mf.ergate.api.ApiConfig;
import com.mf.ergate.api.sys.model.dto.FileStorageInfoDeleteDto;
import com.mf.ergate.api.sys.model.dto.FileStorageInfoQueryDto;
import com.mf.ergate.api.sys.model.dto.FileStorageInfoSaveDto;
import com.mf.ergate.api.sys.model.vo.FileStorageInfoVo;
import com.mf.framework.common.model.Page;
import com.mf.framework.common.model.RemotePage;
import com.mf.framework.common.model.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 微信相关RemoteService层接口类
 * User: zhaoming
 * DateTime: 2019-03-11
 * To change this template use File | Settings | File Templates.
 **/
@Api(value = "/api/wx", tags = "WeixinController", description = "微信相关RemoteService层接口类")
@FeignClient(name= ApiConfig.SERVICE_NAME)
@RequestMapping("/api/weixin")
public interface WeixinRemoteService {

    /**
     * 登录凭证校验
     * @param code 登录时获取的code
     * @return openid
     */
    @ApiOperation(value = "登录凭证校验")
    @ApiImplicitParam(name = "code", value = "登录时获取的code", dataType = "String",  required = true, paramType = "body")
    @RequestMapping(value = "/code2Session", method = RequestMethod.GET)
    Result<String> code2Session(@RequestParam String code);
}
